package com.gomyb.oss.config;

import com.gomyb.oss.FileService;
import com.gomyb.oss.StorageProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/7/3 21:20
 */
@Data
@Configuration
@ConfigurationProperties("file")
public class ConfigProperties {

    private Map<String, StorageProperties> upload = new HashMap<>();

    private String using;

    private Class<? extends FileService> source;

}
